#ifndef TCPMANAGER_H
#define TCPMANAGER_H

#include <QTcpServer>
#include <QString>
#include "log.h"

class TcpManager : public QTcpServer
{
    Q_OBJECT

public:
    static TcpManager* getInstance();                                // SingleTon
    ~TcpManager();

protected:
    void incomingConnection(int socketDescriptor);                  // handle an incoming Connection !

private:
    TcpManager();
    static TcpManager* instance;
    QString className = "TcpManager";
    Log *log = new Log(className);
};

#endif // TCPMANAGER_H
